﻿<Window x:Class="Resn.WhuPub.WPFClientUI.CreateMajorOperationWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Style="{StaticResource WindowStyle}" WindowStartupLocation="CenterScreen" 
        Loaded="Window_Loaded" MouseDown="Window_OnMouseDown">
        <Grid Name="LayoutRoot">
                <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <TextBlock Text="新建专业招生"  />

                <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="1" Grid.Row="1" Text="年份" 
                                   HorizontalAlignment="Right" />
                        <ComboBox Grid.Column="2" Grid.Row="1" MinWidth="280" Name="YearsComboBox"
                                   
                                  ItemsSource="{Binding MajorOperationYears}"
                                  SelectedValue="{Binding MajorOperationYear}" />

                        <TextBlock Grid.Column="1" Grid.Row="2" HorizontalAlignment="Right" Text="人数"
                                    VerticalAlignment="Center" />
                        <ComboBox Grid.Column="2" Grid.Row="2" MinWidth="280" Name="AmountsComboBox"
                                   
                                  ItemsSource="{Binding MajorOperationStudentsAmounts}"
                                  SelectedValue="{Binding MajorOperationStudentsAmount}"/>
                </Grid>
                <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Button Grid.Column="1" Style="{DynamicResource WindowCancelButtonStyle}"/>
                        <Button Grid.Column="2" Style="{DynamicResource WindowAcceptButtonStyle}" Click="AcceptButton_Click" />

                </Grid>
        </Grid>
</Window>